home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0897 / 000275_amos-request@svcs1.digex.net_Thu Aug 14 23:15:36 1997.msg < prev    next >
Text File  |  1997-09-09  |  2KB  |  51 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id XAA08310
  3.     for <mcox@access.digex.net>; Thu, 14 Aug 1997 23:15:34 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id VAA23985
  6.     for amos-out; Thu, 14 Aug 1997 21:14:30 -0400 (EDT)
  7. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id VAA23982
  9.     for <amos-list@svcs1.digex.net>; Thu, 14 Aug 1997 21:14:29 -0400 (EDT)
  10. Received: from m6.sprynet.com (m6.sprynet.com [165.121.1.89])
  11.     by mail1.access.digex.net (8.8.5/8.8.5) with SMTP id VAA22538
  12.     for <amos-list@access.digex.net>; Thu, 14 Aug 1997 21:14:26 -0400 (EDT)
  13. Received: from sprynet.com (ragriffi@hd32-124.hil.compuserve.com [206.175.223.124]) by m6.sprynet.com (8.6.12/8.6.12) with SMTP id SAA12748 for <amos-list@access.digex.net>; Thu, 14 Aug 1997 18:14:22 -0700
  14. From: Richard Griffith <ragriffi@sprynet.com>
  15. Reply-To: Richard Griffith <ragriffi@sprynet.com>
  16. To: AMOS mailing list <amos-list@access.digex.net>
  17. Date: Thu, 14 Aug 1997 21:11:26 +0500
  18. Message-ID: <yam7165.1342.118740544@m6.sprynet.com>
  19. In-Reply-To: <92709441@rydh.bengtsfors.se>
  20. X-Mailer: YAM 1.3.4 [040] - Amiga Mailer by Marcel Beck
  21. Subject: Re: Input
  22. MIME-Version: 1.0
  23. Content-Type: text/plain
  24. Status: O
  25. X-Status: 
  26.  
  27. On 14-Aug-97, Johannes Rydh wrote:
  28.  
  29. >I have a problem. How can I input a string from an open file ...
  30.  
  31. >Appearently, AMOS looks for a special char that will end the line, and I
  32. >beleve it's char 0 in the ascii table.
  33.  
  34. Actually, AMOS is looking for line ending with a CR/LF combination
  35. like some 'other' computer systems use for plain text file. (Most
  36. notable, MS-DOS, but I belive the Atari roots in STOS are what is
  37. actually behind this 'feature'.) Luckily, AMOS has a way to specify
  38. the line termination, like so:
  39.  
  40.   Open In 1,"textfile.name"
  41.   Rem set Amiga default of a single line feed
  42.   Set Input 10,-1
  43.  
  44. The default would be something like 'Set Input 13,10'; The negative
  45. one means don't expect a second character.
  46.  
  47. Good luck,
  48. -Richard
  49.  
  50.  
  51.